import { _HttpClient, ModalHelper } from "@delon/theme";
import { NzMessageService, NzModalSubject } from "ng-zorro-antd";
import { Component } from "@angular/core";

@Component({
    selector: "test-table-edit",
    templateUrl: "./test-table-edit.component.html"
})

export class TestTableEditComponent {
    
    no: String;

    constructor(private http: _HttpClient,
                public msg: NzMessageService,
                private subject: NzModalSubject,
                private modalHelper: ModalHelper) {
        
    }

    close(): void {
        this.subject.destroy();
    }

    save(): void {
        setTimeout(() => {
            this.msg.success("123");
            this.subject.destroy();
        }, 1000);
    }
}